<?php 
class Tconf extends AppModel {
	
	var $name = 'Tconf';
	var $useTable = 'tconf';
	var $primaryKey = "id";

    /**
     * check the variable key is exist
     * @param string $key variable key
     * @return
     */
	function findByKey($key = NULL) {
		if ( empty($key)) {
			return FALSE;
		}
		$conditions = "f_key='".strtolower($key)."' ";
		return $this->find($conditions);
	}

}
?>